﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Truron.Purchase.Model.RemoteModel;

namespace Truron.Purchase.Model
{
	[Serializable]
	[PrimaryKey("Id")]
	[Table("Purchase_OuterNoteDetail")]
	public class Purchase_OuterNoteDetail : BaseData
	{
		public int NoteId { get; set; }
		public string Item { get; set; }
		public string ItemType { get; set; }
		public decimal PriceNum { get; set; }
		public string remark { get; set; }
		public decimal PlusNum { get; set; }
		public int TypeNum { get; set; }
		[NotMapped]
		public int UseNum { get; set; }
		[NotMapped]
		public int ResetNum { get; set; }
		[NotMapped]
		public string SupplyName { get; set; }
		[NotMapped]
		public string Code { get; set; }
		[NotMapped]
		public int RelationNum { get; set; }
		public void Create(UserCache userInfo)
		{
			this.CreateUser = userInfo.UserId;
			this.CreateTime = DateTime.Now;
		}
		public void Modify(UserCache userInfo)
		{
			this.LastUpdateUser = userInfo.UserId;
			this.LastUpdateTime = DateTime.Now;
		}
	}


}
